import { WorkOrdersSummaryRequest, WorkOrdersSummaryResponse } from "./models";
import req from "/@/api/req";

export const Api = {
  workOrderSummary: "api/iopm/workOrders/workOrderSummary",
};

export function getSummaryData(data: WorkOrdersSummaryRequest, showLoading: boolean) {
  return req.commonPost<WorkOrdersSummaryResponse>(Api.workOrderSummary, data, {
    useGlobalLoading: showLoading,
  });
}
